package bean;
import java.sql.*;
import bean.dbbean.*;
public class notebean {
	Connection conn=dbbean.getConn();
	PreparedStatement pstmt;
	public boolean insertnote(String name,String subject,String note) throws SQLException{
		String mysql    ="insert into note(name,subject,note) values(?,?,?)";
		 PreparedStatement pst=conn.prepareStatement(mysql);
		 	pst.setString(1,name);
		    pst.setString(2,subject);
		    pst.setString(3,note);
		    int result =pst.executeUpdate();
		    if(result>0)
		       {
		    	return true; 
		       }else{
		    	   return false;
		          }
			
		
	}
}
